//
// Created by xinhua on 2021/10/23.
//

#ifndef MRENDER_MAINGUI_H
#define MRENDER_MAINGUI_H


#include "BaseGui.h"
#include "../objects/Scene.h"
#include "../objects/mesh/Triangle.h"

class MainGui : public BaseGui{
private:
    Scene *scene;
    /**
     * 显示主菜单栏
     */
    void ShowAppMainMenuBar();
    /**
     * 显示主菜单栏中[File]
     */
    void ShowMenuFile();
    /**
     * 显示帧率信息
     * @param p_open 是否显示
     */
    void showFramInfo(bool *p_open) const;
    /**
     * 显示场景信息
     * @param scene
     * @param p_open
     */
    void showItemDetail(Scene *scene, bool *p_open) const;
public:
    void setObject3D(Object3D *_object3D) override;
    void onRender(float elapsedTime, Matrix4x4 proj, Matrix4x4 view, Matrix4x4 pworld) override;

public:
    MainGui();
    ~MainGui();
};


#endif //MRENDER_MAINGUI_H
